/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataModel;

import DataModel.Enums.PaymentStatus;
import java.util.Date;

/**
 *
 * @author Rainiero
 */
public class PaymentBase {

    // <editor-fold defaultstate="collapsed" desc="Attributes">
    private int _id;
    private Date _estimatedDate;
    private Date _realDate;
    private double _estimatedAmount;
    private double _realAmount;
    private Enums.PaymentStatus _status;
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Constructor">
    public PaymentBase(int id, Date estimatedDate, double estimatedAmount)
    {
        _id = id;
        _estimatedDate = estimatedDate;
        _estimatedAmount = estimatedAmount;
        _status = Enums.PaymentStatus.Pending;
    }

    public PaymentBase(int id, Date estimatedDate, double estimatedAmount, Date realDate, double realAmount)
    {
        _id = id;
        _estimatedDate = estimatedDate;
        _estimatedAmount = estimatedAmount;
        _realDate = realDate;
        _realAmount = realAmount;
        _status = Enums.PaymentStatus.Payed;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Properties">
    public int getId() {
        return _id;
    }

    public double getEstimatedAmount() {
        return _estimatedAmount;
    }

    public Date getEstimatedDate() {
        return _estimatedDate;
    }

    public double getRealAmount() {
        return _realAmount;
    }

    public Date getRealDate() {
        return _realDate;
    }

    public PaymentStatus getStatus() {
        return _status;
    }
    // </editor-fold>

}
